package com.sinothk.gpserver.connection.websocket.test;

import com.sinothk.gpserver.connection.websocket.WebSocketServer;
import com.sinothk.gpserver.connection.websocket.bean.Message;
import com.sinothk.server.support.annotation.callback.BizException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * 编写 Liang Y.T.
 * 时间 2021/6/27 0:39
 */
@Api(tags = "消息相关")
@RestController
@RequestMapping("/notice")
public class NoticeController {

    @ApiOperation(value = "发送消息")
    @PostMapping(value = "/send")
    public void send(@RequestBody Message message) {
//        WebSocketServer.obj().send(message);
        throw new BizException("发送成功");
    }
}
